package com.qf.java2201.securitydemo1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan("com.qf.java2201.securitydemo1.mapper")
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)    // 开启  security 的 注解功能
public class Securitydemo1Application {

	public static void main(String[] args) {
		SpringApplication.run(Securitydemo1Application.class, args);
	}

}
